<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>动态财神爷</title>
    <style>
        body {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            background-color: #f0f0f0;
            margin: 0;
        }
        #caishen {
            width: 200px;
            height: 300px;
            background-image: url('./assets_page6/caishen.png'); /* 请替换为你的财神爷图片 */
            background-size: cover;
            position: relative;
        }
        #incense {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            width: 50px;
            height: 50px;
            background-image: url('./assets_page6/caishen.png'); /* 请替换为你的香火图片 */
            background-size: cover;
            display: none;
        }
    </style>
</head>
<body>
    <div id="caishen" onclick="lightIncense()">
        <div id="incense"></div>
    </div>

    <script>
        function lightIncense() {
            var incense = document.getElementById('incense');
            incense.style.display = 'block';
            setTimeout(function() {
                incense.style.display = 'none';
            }, 2000); // 2秒后隐藏香火
        }
    </script>
</body>
</html>
